home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Examples / Skeleton / UViewSkeleton.h < prev   
Encoding:
Text File  |  1996-04-03  |  1.7 KB  |  63 lines  |  [TEXT/MPS ]

  1. // UViewSkeleton.h
  2. // Copyright © 1991-96 by Apple Computer, Inc. All rights reserved. 
  3.  
  4. #ifndef __UVIEWSKELETON__
  5. #define __UVIEWSKELETON__
  6.  
  7. #ifndef __UVIEW__
  8. #include "UView.h"
  9. #endif
  10.  
  11. //----------------------------------------------------------------------------------------
  12. // Forward and external classes
  13. //----------------------------------------------------------------------------------------
  14.  
  15. class TDocumentSkeleton;
  16. class TStream;
  17.  
  18. //----------------------------------------------------------------------------------------
  19. // TViewSkeleton
  20. //----------------------------------------------------------------------------------------
  21.  
  22. class TViewSkeleton: public TView
  23. {
  24.     MA_DECLARE_CLASS;
  25.  
  26.   public:
  27.     TDocumentSkeleton* fDocumentSkeleton;
  28.     
  29.     TViewSkeleton(); 
  30.         // Constructor
  31.     
  32.     virtual ~TViewSkeleton();
  33.         // Destructor
  34.     
  35.     virtual void IViewSkeleton(TDocumentSkeleton* itsDocument,
  36.                                 TView* itsSuperView,
  37.                                 const VPoint& itsLocation,
  38.                                 const VPoint& itsSize);
  39.                                         
  40.     virtual void DoPostCreate(TDocument* itsDocument); // Override
  41.                            
  42.     // Drawing
  43.     virtual void Draw(const VRect& area); // Override
  44.     
  45.     // Commands
  46.     virtual void DoSetupMenus(); // Override
  47.     
  48.     virtual void DoMenuCommand(CommandNumber aCommandNumber); // Override
  49.     
  50.     virtual void DoMouseCommand(VPoint& theMouse,
  51.                                   TToolboxEvent* event,
  52.                                   CPoint hysteresis); // Override
  53. };
  54.  
  55. //----------------------------------------------------------------------------------------
  56. // Global initialization procedure
  57. //----------------------------------------------------------------------------------------
  58.  
  59. extern void InitUViewSkeleton();
  60.     // Call this routine at initialization time
  61.  
  62. #endif
  63.